import { RouteObject } from "react-router-dom";

import BasicLayout from "@/layout";

import User from "@/views/system/user";
import Role from "@/views/system/role";

const route: RouteObject = {
  key: "/system",
  label: "系统管理",
  path: "/system",
  element: <BasicLayout />,
  children: [
    {
      key: "/system/user",
      label: "用户管理",
      path: "/system/user",
      element: <User />,
    },
    {
      key: "/system/role",
      label: "角色管理",
      path: "/system/role",
      element: <Role />,
    },
  ],
};

export default route;
